//
//  AppDelegate.swift
//  weibo
//
//  Created by 卢春晖 on 2017/4/2.
//  Copyright © 2017年 itheima. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        window = UIWindow(frame: UIScreen.main.bounds)
        let controller = WBMainController()
        //当访问一个可选对象的方法和属性时,可以直接使用?,最终会返回一个可选值
        window?.rootViewController = controller
        window?.makeKeyAndVisible()
        
        return true
    }


}
